home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10454 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  732 b 

  1. Path: ccshst05.cs.uoguelph.ca!news    
  2. From: dpiatkow@uoguelph.ca  (Dariusz Piatkowski)
  3. Newsgroups: comp.lang.c++
  4. Subject: friend functions and access to private variables...
  5. Date: 8 Mar 1996 03:22:24 GMT
  6. Organization: University of Guelph
  7. Message-ID: <4ho95g$hjq@ccshst05.cs.uoguelph.ca>
  8. Reply-To: dpiatkow@uoguelph.ca (Dariusz Piatkowski)
  9. NNTP-Posting-Host: ppp01-23.net.uoguelph.ca
  10. X-Newsreader: IBM NewsReader/2 v1.2.5
  11.  
  12. Hi everyone!
  13.  
  14. I'm dealing with two classes, where a member function of class A is declared as
  15. a friend function of class B.
  16.  
  17. Unfortunately this does not allow the friend function access to private variables in
  18. class B...what gives? Is it not legal to make such a declaration?
  19.  
  20. Thanks for any hints...
  21.  
  22. -Dariusz
  23.